<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>    
        function Student(name,age){
            function showThis(){
                console.log(this);
            }
            showThis();
            let showThis2=()=>{
                console.log(this);
            };
            showThis2();
        }
        
        var stu1=new Student("tom",20);
        console.log("=============================");
        window.onload=function(){
            console.log(this);
            var btn=document.getElementById("btn");
            btn.onclick=()=>{
                console.log(this);
            };
        };
    </script>
</head>
<body>
    <input type="button" value="我是按钮" id="btn">
</body>
</html>